<template>
  <div>
    <div class="wrapper">
      <RouterView></RouterView>
    </div>
  </div>
</template>

<script setup>
import { RouterView } from "vue-router";
import { useRoute, useRouter } from "vue-router";
const route = useRoute();
const router = useRouter();
</script>

<style lang="scss" scoped>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
}
.wrapper ul {
  width: 200px;
  // height: 100vh;
  background-color: pink;
}
ul li {
  display: flex;
  flex-direction: column;
  list-style: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .wrapper ul {
    width: 100%;
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
  }

  ul li {
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
  }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
  * {
    font-size: 14px; /* 基础字体大小调整 */
  }

  .wrapper {
    padding: 0;
  }
}
</style>
